package com.ruoyi.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.business.domain.ExamQuestion;
import com.ruoyi.business.domain.UserExamQuestion;
import com.ruoyi.business.domain.bo.ExamQuestionBo;
import com.ruoyi.business.domain.bo.UserExamBo;
import com.ruoyi.business.domain.bo.UserExamQuestionBo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 最爱喝兽奶
 * @create 2022/8/12
 **/
public interface ExamQuestionMapper extends BaseMapper<ExamQuestion> {

    /**
     * 根据考试id和编号查询出题目信息
     * @param examId 考试的id
     * @param num 考试的编号
     * @return
     */
    List<String> selectQuestionByExam(@Param("examId") String examId, @Param("num") String num);

    /**
     * 根据传入的考试id，查询主观题的id
     * @param examId
     * @param examNum
     * @return
     */
    List<String> selectSubjectiveQuestionsByExam(@Param("examId") String examId,
                                                 @Param("examNum") String examNum);
}
